package quotation.web.element.ddd.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import quotation.web.element.ddd.dto.EleDto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EleForm {

    @NotNull
    @ApiModelProperty(value = "主表id")
    private Long quotationSysId;

    @Size(min = 1, message = "列表不能为空")
    private List<EleDto> dtoList;

}
